void main(List<String> args) {
  List names = ["张三", "李四", "王五"];
  names.forEach((element) {
    print(element);
  });
  List girls = ["LISA", "张元英", "IU"];
  List boys = names;
  boys.add("鹿晗");
  print("---");
  names.forEach((element) {
    print(element);
  });
  print("打印girls---");
  girls.forEach((element) {
    print(element);
  });
  girls.addAll(["迪丽热巴", "🐑🐑"]);
  girls.forEach((element) {
    print(element);
  });
  // every()方法
  var res = girls.every((item) => item == "张元英");
  print(res);
  // any()方法
  res = girls.any((item) => item == "张元英");
  print(res);
  // 会报错 type 'String' is not a subtype of type 'bool'
  // res = girls.elementAt(1);
  var kes = girls.elementAt(1);
  print(kes);
  girls.forEach((item) => print(item));
}
